//
//  WJButton+extention.swift
//  WJWEIBO
//
//  Created by 文杰 许                       on 2018/6/22.
//  Copyright © 2018年 文杰 许                      . All rights reserved.
//

import UIKit

extension UIButton
{
    convenience init(title: String, foneSize : CGFloat = 16, normalColor : UIColor, highlightedColor : UIColor, selectedColor : UIColor = UIColor.orange)
    {
        self.init()
        
        self.setTitle(title, for: .normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: foneSize)
        self.setTitleColor(normalColor, for: .normal)
        self.setTitleColor(highlightedColor, for: .highlighted)
        self.setTitleColor(selectedColor, for: .selected)
        
    }
}
